package com.gobo.jinghuimall.cart.service;


import com.gobo.jinghuimall.cart.entiry.vo.Cart;
import com.gobo.jinghuimall.cart.entiry.vo.CartItem;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * 购物车接口
 */
public interface CartService {

    Cart getCart() throws ExecutionException, InterruptedException;

    CartItem addToCart(Long skuId, Integer count) throws ExecutionException, InterruptedException;

    CartItem getCartItem(Long skuId);

    void countChange(Long skuId, Integer count);

    void checkItem(Long skuId, Boolean check);

    void deleteItem(Long skuId);

    List<CartItem> getCartByChecked() throws ExecutionException, InterruptedException;

}
